<?php

require_once 'ConfigEditorHandler.php';

function handle_db ()
{
	global $config;

	$config_file = $config['dir.install'].'etc/conf.d/db.php';
	$req = new DBConfigEditor(array('source'=>$config_file));
	if ($req->init()) return call_user_func($req->dispatch());
} // end of function handle_check

class DBConfigEditor extends ConfigEditorHandler
{
	public function loadDefaults ($form)
	{
	} // end of method getFormDefaults
	public function validate ($form)
	{
		return install_validate_db($form);
	} // end of method validate
}





